package cn.desk.desktop.provider;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import cn.desk.commons.util.RequestProvider;
import cn.desk.desktop.entity.ShortCut;
import cn.desk.desktop.service.IShortCutService;

public class ShortCutRequestProvider implements RequestProvider{
	private IShortCutService<ShortCut> shortCutService;
	@Override
	public Map<String, Object> provider() {
		List<ShortCut> list=shortCutService.listByProperty(ShortCut.class, "parent", null);
		Map<String,Object> map=new HashMap<String,Object>();
		map.put("shortCutList", list);
		return map;
	}
	public IShortCutService<ShortCut> getShortCutService() {
		return shortCutService;
	}
	public void setShortCutService(IShortCutService<ShortCut> shortCutService) {
		this.shortCutService = shortCutService;
	}
}
